<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rmdc="http://www.tecnologiasRM.com.ve/jsf">
<ui:composition
	template="../WEB-INF/recursos/plantilla/platillaAdministracion.xhtml">

	<ui:define name="titulo_pagina">Compania</ui:define>

	<ui:define name="botonera_filtro_crud">
		<rmdc:botoneraFiltroCRUD backingBean="#{companiaFormBean}" />
	</ui:define>
	<ui:define name="contenido">
		<div align="center"><rich:panel
			style="width:690px;margin-right: 5px; margin-left: 2px;">
			<f:facet name="header">
				<h:outputText value="Datos de la CompaÃ±ia" />
			</f:facet>

			<rmdc:inputElementFormat fieldName="codigoCompania" label="Codigo">
				<h:inputText id="codigoCompania"
					value="#{companiaFormBean.entity.codigoCompania}"
					style="text-align: left;width: 100%;" required="true" />
			</rmdc:inputElementFormat>

			<rmdc:inputElementFormat fieldName="nombreCompania" label="Nombre">
				<h:inputText id="nombreCompania"
					value="#{companiaFormBean.entity.nombreCompania}"
					style="text-align: left;width: 100%;" required="true" />
			</rmdc:inputElementFormat>

			<rmdc:inputElementFormat fieldName="descripcionCompania"
				label="Descripcion">
				<h:inputTextarea id="descripcionCompania"
					value="#{companiaFormBean.entity.descripcionCompania}"
					style="text-align: left;width: 100%;" required="false" />
			</rmdc:inputElementFormat>

			<rmdc:inputElementFormat fieldName="direccionCompania"
				label="Direccion">
				<h:inputTextarea id="direccionCompania"
					value="#{companiaFormBean.entity.direccionCompania}"
					style="text-align: left;width: 100%;" required="false" />
			</rmdc:inputElementFormat>

			<rmdc:inputElementFormat fieldName="rifCompania" label="RIF">
				<h:inputText id="rifCompania"
					value="#{companiaFormBean.entity.rifCompania}"
					style="text-align: left;width: 100%;" required="true" />
			</rmdc:inputElementFormat>

			<rmdc:inputElementFormat fieldName="nitCompania" label="NIT">
				<h:inputText id="nitCompania"
					value="#{companiaFormBean.entity.nitCompania}"
					style="text-align: left;width: 100%;" required="true" />
			</rmdc:inputElementFormat>
		</rich:panel></div>
	</ui:define>
</ui:composition>
</html>
